<template>
	<view class="padding-30">
		<block v-for="(item,index) in Orderlist" :key="index">
			<order-message :orderInfo="item"></order-message>
		</block>
	</view>
</template>

<script>
	import orderMessage from "@/components/order/order-message.vue"
	export default {
		components:{
			orderMessage
		},
		data(){
			return{
				Orderlist:[],
				form:{
					type:2,
				}
			}
		},
		onShow() {
			this.getOrderlist()
		},
		methods:{
			getOrderlist() {
				this.$http.post(this.$api.getOrderlist,this.form, {
					token: true
				}).then(res => {
					if(res.code == 1){
						this.Orderlist = res.data
					}
				})
			},
		}
	}
</script>

<style lang="scss">
</style>